package homework;

import java.util.Scanner;

public class test5 {
    /*
     * 输入一个数字，判断是一个奇数还是偶数
     * 思路：嗯...写点啥呢?反正就是能否被2整除注意0非积非偶
     * */
    public static void main(String[] args) {


            System.out.println("请输入数字");
            Scanner scanner = new Scanner(System.in);
            int a = scanner.nextInt();
            if (a == 0)
                System.out.println("非奇偶数");
            else if (a % 2 == 0)
                System.out.println("偶数");

            else System.out.println("奇数");


    }
}
